package com.margo.project.lambda;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class LambdaClient {
	public static void main(String[] args) {
		String[] array= {"a","b","c"};
		List<String> list=Arrays.asList(array);
		List<String> result=new ArrayList<String>();
		list.forEach((e) -> {
			if(e.contains("a")) {
				result.add(e);
			};
		});
		
		result.forEach(System.out::println);
	}
}
